﻿#include "CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged.h"
#include "CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged::CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged::~CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged()
    {
    }

    bool CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged::execute()
    {
        //bool _success = false;
        emit IBaseSignalInstance->signal_threeDSurfacePlotSidebarCurveNameItemCheckStateChanged(m_windowId, m_itemIndex, m_checkState);
        return true;
    }

    void CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged::undo()
    {
    }

    void CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged::redo()
    {
        // execute();
    }

    void CmdThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged::setThreeDSurfacePlotSidebarCurveNameItemCheckStateChanged(int windowId, int itemIndex, bool checkState)
    {
        m_windowId = windowId;
        m_itemIndex = itemIndex;
        m_checkState = checkState;
    }

} // namespace PostCommand
